Lightstreamer .Net Adapter 1.7
ContentsIndexHome
PreviousUpNext
IMetadataProvider.NotifyNewTables Method

Called by Lightstreamer Kernel through the Remote Server to check that a User is enabled to add some Tables (i.e. Subscriptions) to a push Session. If the check succeeds, this also notifies the Metadata Adapter that the Tables are being added to the Session. 

This method is requested by the Server while holding a lock to the session. This means that any operation on the session, including update dispatching, is blocked during the roundtrip time. Hence, this method should be used only if strictly needed. In general, the WantsTablesNotification method should return false. 

 

C++
void NotifyNewTables(string user, string sessionID, TableInfo [] tables);
C#
void NotifyNewTables(string user, string sessionID, TableInfo [] tables);
Visual Basic
Function NotifyNewTables(user As string, sessionID As string, tables As TableInfo []) As void
Parameters 
Description 
string user 
A User name. 
string sessionID 
The ID of a Session owned by the User. 
TableInfo [] tables 
An array of TableInfo instances, each of them containing the details of a Table (i.e. Subscription) to be added to the Session. 
Exceptions 
Description 
in case the User is not allowed to add the specified Tables (i.e. Subscriptions) to the Session.  
in case something is wrong in the parameters, such as the ID of a Session that is not currently open or inconsistent informations about a Table (i.e. Subscription).